-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine fanout timeline #12507
Refine fanout timeline #12507
Conversation
…d always true for channel / user note list
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -17743,6 +17743,10 @@
},
"untilDate": {
"type": "integer"
+ },
+ "allowPartial": {
+ "type": "boolean",
+ "default": false
}
},
"required": [
@@ -46174,6 +46178,10 @@
"untilDate": {
"type": "integer"
},
+ "allowPartial": {
+ "type": "boolean",
+ "default": false
+ },
"includeMyRenotes": {
"type": "boolean",
"default": true
@@ -46382,6 +46390,10 @@
"type": "string",
"format": "misskey:id"
},
+ "allowPartial": {
+ "type": "boolean",
+ "default": false
+ },
"sinceDate": {
"type": "integer"
},
@@ -49271,6 +49283,10 @@
"untilDate": {
"type": "integer"
},
+ "allowPartial": {
+ "type": "boolean",
+ "default": false
+ },
"includeMyRenotes": {
"type": "boolean",
"default": true
@@ -49825,6 +49841,10 @@
"untilDate": {
"type": "integer"
},
+ "allowPartial": {
+ "type": "boolean",
+ "default": false
+ },
"includeMyRenotes": {
"type": "boolean",
"default": true
@@ -59900,6 +59920,10 @@
"untilDate": {
"type": "integer"
},
+ "allowPartial": {
+ "type": "boolean",
+ "default": false
+ },
"withFiles": {
"type": "boolean",
"default": false |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #12507 +/- ##
===========================================
+ Coverage 78.65% 78.74% +0.08%
===========================================
Files 950 953 +3
Lines 103382 103616 +234
Branches 8329 8328 -1
===========================================
+ Hits 81319 81592 +273
+ Misses 22063 22024 -39 ☔ View full report in Codecov by Sentry. |
#12254 |
了解です。 |
HTL will never be purged so it's no longer required
notes/timeline のドキュメント見ても少なくなる可能性があるとは書かれておらず、実際に |
デフォルトでfalseだと、これから実装されるクライアントなどについてわざわざtrueでリクエストしてくることは少なそうだから効果が限定的になりそうという懸念があるわね |
もしくはv2みたいにエンドポイント分ける手もあるわね |
タイムラインAPIのレスポンスはオブジェクトではなく配列そのままで、ページネーションに関する情報などを追加できないという問題があって以前からv2としてエンドポイント更新したいと考えてたからそのタイミングでここら辺の挙動も変えるという感じ |
既存のクライアントを使用してるユーザーはクライアントの更新が入るまで正しく動かない状態で問題ないという考えでしょうか? |
v2にする場合パスどのようにしますか? |
v2追加するのはもっと大きなトピックになるからここでは詳しい議論はしないけど、/api/v2/notes/timeline とかになりそう |
テストが通れば良さそう |
なんでさっき通らなかったんだろ... |
🙏🏻 🙏🏻 🙏🏻 |
* chore(endpoints/hybrid-timeline): don't pack inside getFromDb * chore(endpoints/hybrid-timeline): Redisから取得する部分のうちSTLに依存しなそうなところを別のServiceに切り出し * chore(endpoints/local-timeline): FanoutTimelineEndpointServiceで再実装 * chore(endpoints/channels/timeline): FanoutTimelineEndpointServiceで再実装 * chore(endpoints/timeline): FanoutTimelineEndpointServiceで再実装 * chore(endpoints/user-list-timeline): FanoutTimelineEndpointServiceで再実装 * chore(endpoints/users/notes): FanoutTimelineEndpointServiceで再実装 * chore: add useDbFallback to FanoutTimelineEndpointService.timeline and always true for channel / user note list * style: fix lint error * chore: split logic to multiple functions * chore: implement redis fallback * chore: 成功率を上げる * fix: db fallback not working * feat: allowPartial * chore(frontend): set allowPartial * chore(backend): remove fallbackIfEmpty HTL will never be purged so it's no longer required * fix: missing allowPartial in channel timeline * fix: type of timelineConfig in hybrid-timeline --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
What
Why
#12160 はMissRiricaで問題なようなので早めに対応したいなと思いました
Additional info (optional)
TL取得のためのDBアクセス回数が平均して2回になってるとおもいます。
Checklist